﻿namespace KinonekoSoftware.Foundation.UI.Attributes
{
    /// <summary>
    /// App版本
    /// </summary>
    [AttributeUsage(AttributeTargets.Assembly)]
    public class ApplicationVersionAttribute : Attribute
    {

        public string Version     { get; init; }
        public int    Major       { get; init; }
        public int    Minor       { get; init; }
        public int    Revision    { get; init; }
        public int    BuildNumber { get; init; }
    }


    /// <summary>
    /// App版本
    /// </summary>
    [AttributeUsage(AttributeTargets.Assembly)]
    public class ApplicationInsideVersionAttribute : Attribute
    {
        public ApplicationInsideVersionAttribute(string version)
        {
            Version = version;
        }

        public string Version { get; }
    }
}